public class Test01 {
    public static void main(String[] args) {
        BinaryTree binaryTree = new BinaryTree();
        BinaryTree.TreeNode root=  binaryTree.createTree();
        binaryTree.preOrder(root);
        System.out.println("===============");
        binaryTree.inOrder(root);
        System.out.println("===============");
        binaryTree.postOrder(root);
        System.out.println("===============");
        binaryTree.nodeSize(root);
        System.out.println(binaryTree.countNode);
        System.out.println("===============");
        System.out.println(binaryTree.nodeSize2(root));
        System.out.println("===============");
        System.out.println(binaryTree.getLeafNodeCount(root));
        System.out.println("===============");


    }
}
